<link rel="stylesheet" href="/static/admin/css/global.css" media="all">
<div class="admin-main layui-anim layui-anim-upbit">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>上传合同</legend>
    </fieldset>
    <div class="layui-row" style="">
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md6 layui-col-lg6">
            <form id="app-form" class="layui-form layuimini-form">
            {$fields_str|raw}
            </form>
        </div>
        <div class="layui-col-xs12 layui-col-sm6 layui-col-md6 layui-col-lg6" style="padding: 0 10px 0 10px;">
            <fieldset class="layui-elem-field " style="padding: 15px 15px 0 15px">
                <legend>上传记录</legend>
                <ul class="layui-timeline">
                    {volist name='$result.contract' id='vo'  }
                    <li class="layui-timeline-item">
                        <i class="layui-icon layui-timeline-axis"></i>
                        <div class="layui-timeline-content layui-text">
                            <h3 class="layui-timeline-title" style="color: rosybrown;font-size: 15px">
                                {$vo.create_time|date='Y年m月d日 H:i'}
                            </h3>
                            <div>
                            <div style="display: inline-block">
                                <img src="{$vo.avatar}" alt="" style="width: 30px;height: 30px;border-radius: 50%">
                                <strong>{$vo.pr_user}：</strong>
                            </div>
                            {$vo.content}
                            </div>
                        </div>
                    </li>
                    {/volist}

                </ul>
                <div class="layui-form layui-form-pane">

                    <div class="layui-form-item layui-form-text">
                        <a name="comment"></a>
                        <div class="layui-input-block">
                            <textarea name="content" id="content"  required lay-verify="required" placeholder="添加合同描述"  class="layui-textarea fly-editor" style="height: 150px;"></textarea>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">合同-附件</label>
                        <div class="layui-input-block layuimini-upload">
                            <input name="pact_files" class="layui-input layui-col-xs6 files" placeholder="请上传合同-附件">
                            <div class="layuimini-upload-btn">
                                <span><a class="layui-btn" data-upload="pact_files" data-upload-number="100" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video|pdf|xmind" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <input type="hidden" name="customer_id" value="{$result.id}">
                        <button class="layui-btn" lay-filter="btn_comment" lay-submit="{:url('add')}">提交合同</button>
                    </div>

                </div>

            </fieldset>




        </div>
    </div>


</div>